package com.ayh.campusfun.vo;

import cn.hutool.core.bean.BeanUtil;
import com.ayh.campusfun.entity.FunShare;
import com.ayh.campusfun.entity.TopicShare;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author ayh
 * @create 2021/3/31 8:53
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ShareVO extends FunShare {
    private Boolean isClick;
    private Boolean isAttention;

    public static ShareVO build(FunShare funShare, Boolean isClick,Boolean isAttention){
        ShareVO shareVO = new ShareVO();
        BeanUtil.copyProperties(funShare,shareVO);
        shareVO.setIsClick(isClick);
        shareVO.setIsAttention(isAttention);
        return shareVO;
    }
}
